INFO:     ('127.0.0.1', 57277) - "WebSocket /live-reload" [accepted]
INFO:     connection open
INFO:     127.0.0.1:57273 - "GET /toggle/3 HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/middleware/sessions.py", line 85, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/starlette/routing.py", line 74, in app
    response = await f(request)
               ^^^^^^^^^^^^^^^^
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/fasthtml/core.py", line 308, in _endp
    if not resp: resp = await _wrap_call(self.f, req, self.sig.parameters)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/fasthtml/core.py", line 286, in _wrap_call
    resp = f(*wreq)
           ^^^^^^^^
  File "/Users/Natsume/Documents/answerAi/fasthtml-release-demo-video/main.py", line 23, in get
    todo = todos(tid)
           ^^^^^^^^^^
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/fastlite/core.py", line 121, in __call__
    return list(res)
           ^^^^^^^^^
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/fastlite/core.py", line 120, in <genexpr>
    else: res = (self.cls(**o) for o in res)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/Natsume/mambaforge/envs/fasthtml/lib/python3.12/site-packages/sqlite_minutils/db.py", line 1247, in rows_where
    sql += " where " + where
           ~~~~~~~~~~^~~~~~~
TypeError: can only concatenate str (not "int") to str